package org.example.lost.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.lost.entity.LostInfo;
import org.example.lost.entity.vo.HistoryInfoVO;
import org.example.lost.entity.vo.LostInfoVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author hxy
 * @Date 2021/3/15 10:42
 * @Version 1.0
 */
@Mapper
@Repository
public interface LostMapper {
    int insertLostInfo(LostInfo lostInfo);

    List<LostInfo> selectList(LostInfoVO lostInfoVO);

    int deleteByPrimaryKey(String lostId);

    int updateByPrimaryKey(LostInfo lostInfo);

    List<LostInfo> selectByPrimaryKey(HistoryInfoVO historyInfoVO);

    int updateReturns(@Param("userId") String userId,@Param("lostId") String lostId);

    int updateCheckStatus(@Param("lostId")String lostId, @Param("status")String status);

    String selectUserPhone(String lostId);
}
